/*
 * @Author: chengsl
 * @Date: 2023-01-10 14:49:51
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-10 14:49:52
 * @Description: 描边动画字体 widgetSpecialText
 */
export default {
  graphic: {
    elements: [
      {
        type: 'text',
        left: 'center',
        top: 'center',
        style: {
          text: '城南花已开~',
          fontSize: 80,
          fontWeight: 'bold',
          textAlign: 'left',
          lineDash: [0, 200],
          lineDashOffset: 0,
          fill: 'transparent',
          stroke: '#00afee',
          lineWidth: 2
        },
        keyframeAnimation: {
          duration: 4000,
          loop: true,
          keyframes: [
            {
              percent: 0.7,
              style: {
                fill: 'transparent',
                lineDashOffset: 200,
                lineDash: [200, 0]
              }
            },
            { percent: 0.8, style: { fill: 'transparent' } },
            { percent: 1, style: { fill: '#00af57' } }
          ]
        }
      }
    ]
  }
}
